﻿namespace StudentBackendService.ViewObjects.Req
{
    public class WithPageReq
    {
        public int Page { get; set; } = 0;
        public int Size { get; set; } = 10;

        public int GetPage() => Page - 1 < 0 ? 0 : Page - 1;

        public int Count() => GetPage() * Size;
    }
}
